<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 只要定义在全局的变量和函数 都会变成window对象的属性和方法
        var xiaoxie=10;
        console.log(window);

    </script>
</body>
</html>